package com.syg.demo;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Service
public class A extends B{

    @Resource
    private B b;
    @Resource
    private C c;

    @PostConstruct
    public void init() {
        System.out.println(b);
    }

    @GetMapping("/aaaaaa")
    public void testaa() {
        System.out.println(b);
        System.out.println(c);
    }

}
